package com.kai.service.sms.service;

import com.kai.service.data.request.sms.CheckSmsMailRequest;
import com.kai.service.data.request.sms.SendSmsMailRequest;
import com.kai.service.sms.entity.SmsMail;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 短信，邮件发送记录表 服务类
 * </p>
 *
 * @author wjk
 * @since 2022-03-07
 */
public interface ISmsMailService extends IService<SmsMail> {

    /**
     * 发送验证码
     *
     * @param sendSmsMailRequest
     * @return
     */
    Boolean sendSmsVerificationCode(SendSmsMailRequest sendSmsMailRequest);

    /**
     * 校验验证码
     *
     * @param checkSmsMailRequest
     * @return
     */
    Boolean checkSmsVerificationCode(CheckSmsMailRequest checkSmsMailRequest);
}
